import 'dart:convert';
class HXHCheckUser {
 late int code;
 late String msg;
 late Result result;
 late int invokeStatus;

  HXHCheckUser({required this.code, required this.msg, required this.result, required this.invokeStatus});

  HXHCheckUser.fromJson(Map<String, dynamic> jsonMap) {
    code = jsonMap['code'];
    msg = jsonMap['msg'];
    String string = jsonMap['result'];
    Map<String, dynamic> map = json.decode(string); // 使用jsonDecode函数进行解析
    result = (jsonMap['result'] != null ? Result.fromJson(map) : null)!;
    invokeStatus = jsonMap['invokeStatus'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = code;
    data['msg'] = msg;
    if (result != null) {
      data['result'] = result.toJson();
    }
    data['invokeStatus'] = this.invokeStatus;
    return data;
  }
}

class Result {
  late int isCanLoan;
  late int rejectType;
  late int pushRecordId;
  late String rejectReasons;

  Result({required this.isCanLoan, required this.rejectType, required this.pushRecordId, required this.rejectReasons});

  Result.fromJson(Map<String, dynamic> json) {
    isCanLoan = json['isCanLoan'];
    rejectType = json['rejectType'];
    pushRecordId = json['pushRecordId'];
    rejectReasons = json['rejectReasons'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['isCanLoan'] = this.isCanLoan;
    data['rejectType'] = this.rejectType;
    data['pushRecordId'] = this.pushRecordId;
    data['rejectReasons'] = this.rejectReasons;
    return data;
  }
}
